package com.ruibang.glass.common.constants;

/**
 * @author 宋锦康
 */

public enum CommonErrorCode {
    USER_NO_LOGIN_OR_INVALID(9999, "用户未登录或登录失效"),
    BUSINESS_ERROR(100101000, "{0}"),
    PROCESS_BUSINESS_RELATION_FAILED(100101001, "未查询到业务流程关联信息"),
    PROCESS_START_FAILED(100101002, "发起流程失败,请检查参数是否正确!"),
    SYSTEM_ERROR(100101003, "系统出小差了，请稍后再试哦~~"),
    PARAM_VALID(100101004, "参数校验失败{0}"),
    FREQUENCY_LIMIT(100101005, "请求太频繁了，请稍后再试哦~~"),
    LOCK_LIMIT(100101006, "请求太频繁了，请稍后再试"),
    MONITOR_DATA_EXPORT_FAIL(100101007, "数据导出失败！"),
    MONITOR_DATA_EXPORT_IN_FAIL(100101008, "数据导入失败！"),
    BUSINESS_MENU_IS_EMPTY(100101009, "业务菜单ID不能为空");

    public Integer code;
    public String message;

    CommonErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMsg() {
        return message;
    }

    public int getCode() {
        return code;
    }

}
